const router = require('koa-router')()
const apiBase = require('./apiBase');

let BoatFn = require('./../controller/boat/index');

let sees = require('./../utils/sess')

router.prefix(apiBase + '/boat')


router.post('/create',sees.autoToken , BoatFn.create)

router.post('/update', sees.autoToken, BoatFn.update)

router.post('/remove', sees.autoToken, BoatFn.remove)

router.post('/list',sees.autoToken, BoatFn.list)

module.exports = router
